package com.globallogic.university;

/**
 *
 */
public class Teacher extends Employee {
    private final Lesson[][] lessons;

    public Teacher(String fullName) {
        super(fullName);
        this.lessons = new Lesson[Calendar.daysOfWeek][Calendar.countLessonsOfDay];
    }

    public Lesson[][] getLessons() {
        return this.lessons;
    }

    public boolean isBusy(int day, int iLesson) {
        return this.lessons[day][iLesson] != null;
    }

    public void addLesson(int day, int iLesson, Lesson lesson) {
        lessons[day][iLesson] = lesson;
    }
}